package com.bonuo.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Invoice {
    private Integer id;
    private Integer projectId;
    @Excel(name = "项目名称")
    private String projectName;
    private Integer userId;
    private Integer deptId;
    @Excel(name = "开票金额")
    private BigDecimal invoiceAmount;
    @Excel(name = "开票比例")
    private Integer invoiceRatio;
    @Excel(name = "开票日期",dateFormat = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date invoiceDate;
    private Integer delFlag;
    /** 备注 */
    @Excel(name = "备注")
    private String remark;
    /** 创建者 */
    @Excel(name = "创建人")
    private String createBy;
    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @Excel(name = "创建时间",dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /** 更新者 */
    private String updateBy;
    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private Date startDate;
    private Date endDate;

    /** 排序 */
    private String sort;
}
